<?php get_header(); ?>

<div id="content">

<?php if (have_posts()) : ?>

	<h1 class="pagetitle">Search Results</h1>

	<div class="posts">
		<h2>Query: &ldquo;<?php the_search_query(); ?>&rdquo;</h2>
		<ul>
			<?php while (have_posts()) : the_post(); ?>
			<li>
				<h3 class="title" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
				<p class="meta"><small class="author">By <?php the_author_posts_link() ?> <?php edit_post_link('Edit', ' | ', ''); ?></small> <small class="date"><?php the_time('F jS, Y') ?></small></p>
				<?php the_tags('<p class="tags">Tags: ', ', ', '</p>'); ?>
				<p class="links">
					Posted in <?php the_category(', ') ?>
					&nbsp;&nbsp;&bull;&nbsp;&nbsp;
					<?php edit_post_link('Edit', '', ' &nbsp;&nbsp;&bull;&nbsp;&nbsp; '); ?>
					<?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?>
				</p>		
			</li>
			<?php endwhile; ?>
		</ul>	
	</div>

	<div class="navigation">
		<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
		<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
	</div>

<?php else : ?>

	<div class="post">
		<h1 class="title">Not Found</h1>
		<div class="entry">
			<p>Sorry, but you are looking for something that isn't here.</p>
		</div>
	</div>

<?php endif; ?>

</div>
<!-- end content -->

<?php get_sidebar(); ?>

<?php get_footer(); ?>